import axios from "axios";
import qs from "qs";

import { prefix} from "./index";

export const getCountData = async (type, year) => {
  let response = await axios({
    method: "get",
    url: prefix + "/count/bar",
    params: { type, year },
  });
  return response;
};

export const getProportionData = async (type, year, value) => {
  let response = await axios({
    method: "get",
    url: prefix + "/count/pie",
    params: { type, year, value },
  });
  return response;
};

